import { defineStore } from 'pinia'

export const publicStore = defineStore('publicStore', {
    state: () => ({
        menuActiveIndex: '1', // 菜单选中 
    }),
    getters: {
        getMenuActiveIndex() {
            return this.menuActiveIndex
        },
    },
    actions: {
        setMenuActiveIndex(value) {
            this.menuActiveIndex = value
        },
    },
})
